import React, { Component } from 'react'
import "./Header.css"
export class Header extends Component {
    constructor(props) {
        super(props);
        this.state = {
            title: ""
        }
    }
    render() {
        return (
            <div className="header_box">
                {
                    this.props.headerList.map((ele) => {
                        return <div key={ele}>{ele}</div>
                    })
                }
                <button onClick={() => {
                    this.props.footer('123456')
                }}>点击</button>
            </div>
        )
    }
}

export default Header
